.cpu-performance-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
  gap: 20px;
  background: #fff;
}

/* 上方区域 */
.cpu-top-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 400px;
}

/* CPU信息面板 */
.cpu-info-panel {
  background: #fafafa;
  border-radius: 8px;
  padding: 12px;
}

.info-row {
  display: flex;
  gap: 24px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 13px;
}

.info-label {
  color: #666;
  margin-right: 4px;
}

.info-value {
  color: #333;
  font-weight: 500;
}

/* CPU使用率主图表 */
.cpu-main-chart {
  flex: 1;
  background: #fafafa;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  min-height: 280px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.chart-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.chart-value {
  font-size: 24px;
  font-weight: 600;
  color: #1890ff;
}

/* 下方区域 */
.cpu-cores-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fafafa;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.section-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  padding: 0 16px;
}

/* CPU核心网格 */
.cpu-cores-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 16px;
  flex: 1;
}

.core-chart {
  background: #fff;
  border-radius: 6px;
  padding: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  height: 150px;
}

.core-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
}

/* 图表容器样式 */
.echarts-container {
  width: 100%;
  height: calc(100% - 40px); /* 减去标题高度 */
}

.cpu-usage-card {
  padding: 12px;
}

.cpu-usage-card .resource-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.cpu-usage-card .resource-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.cpu-usage-card .usage-value {
  font-size: 24px;
  font-weight: 600;
  color: #1890ff;
}

.cpu-usage-card .resource-speed {
  font-size: 12px;
  color: #666;
}

/* 进度条样式 */
.cpu-usage-card .ant-progress {
  margin: 0;
}

.cpu-usage-card .ant-progress-line {
  margin: 0;
}

/* 不同状态的样式 */
.cpu-usage-card.warning .usage-value {
  color: #faad14;
}

.cpu-usage-card.critical .usage-value {
  color: #ff4d4f;
}

/* 详细视图样式 */
.cpu-details-view {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
} 